﻿using SiteApp.BLL.Interface;
using SiteApp.DAL;
using SiteApp.Model;

namespace SiteApp.BLL
{
    public class NewInfraredDetailService: INewInfraredDetailService
    {

         public int InsertNewInfraredDetails(NewInfraredDetails model)
        {
			var result = SqlDBHelper.Execute($"insert into  [NewInfraredDetails](TempId,ToolType,ToolName,PtStart,PtEnd,PtPoly,Max,Min,Avg,Alarm,IsAlarm,Pahse,Part,Summary,CREATETIME) values(@TempId,@ToolType,@ToolName,@PtStart,@PtEnd,@PtPoly,@Max,@Min,@Avg,@Alarm,@IsAlarm,@Pahse,@Part,@Summary,@CREATETIME)", model);
            return result;
        }

    }
}
